import http from "@/utils/http";
/**
 * 商品详情
 */
export const getGoods = (id) => {
    return http({
        url: '/goods',
        data: { id }
    })
}

/**
 * 
 * @param {Object} data 根据id获取商品推荐
 * @returns 
 */
export const getGoodsRelevant = (data) => {
    return http({
        url: '/goods/relevant',
        data
    })
}